package com.cvs.service.impl;

import com.cvs.bean.Activity;
import com.cvs.dao.ActivityMapper;
import com.cvs.service.ActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("activityService")
public class ActivityServiceimpl implements ActivityService {
    @Autowired
    private ActivityMapper activityMapper;
    @Override
    public List<Activity> findAll() {

        return activityMapper.findAll();
    }

    @Override
    public Activity findOne(int id) {
        return activityMapper.findOne(id);
    }
}
